package com.netpace.iem.umair.model;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;

public class Income {
	// State
	private int id;
	private List<Label> labels;
	private Category category;
	private Calendar date;
	private double amount;
	
	// Constructors
	public Income() {
		labels = new ArrayList<Label>();
	}
	public Income(int id, List<Label> labels, Category category, double amount, Calendar date) {
		this.id = id;
		this.labels = labels;
		this.category = category;
		this.date = date;
		this.amount = amount;
	}
	public Income(int id, Category category, double amount, Calendar date) {
		this(id, new ArrayList<Label>(), category, amount, date);
	}

	// Getters
	public int getId() {
		return id;
	}
	public List<Label> getLabels() {
		return labels;
	}
	public Category getCategory() {
		return category;
	}
	public Calendar getDate() {
		return date;
	}
	public double getAmount() {
		return amount;
	} 
	
	// Setters
	public void setId(int id) {
		this.id = id;
	}
	public void setLabels(List<Label> labels) {
		this.labels = labels;
	}
	public void setCategory(Category category) {
		this.category = category;
	}
	public void setDate(Calendar date) {
		this.date = date;
	}
	public void setAmount(double total) {
		this.amount = total;
	}
}

